<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>个人资料--layphp后台管理模板</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="icon" href="/favicon.ico">
        <link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css" media="all" />
        <link rel="stylesheet" href="__PUBLIC__/Admin/css/user.css" media="all" />
        <script type="text/javascript" src="__PUBLIC__/static/layui/layui.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Admin/js/user.js"></script>
    </head>
    <body class="childrenBody">
        <form class="layui-form">
            <div class="user_left">
                <div class="layui-form-item">
                    <label class="layui-form-label">登录名</label>
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="<{$user_info['id']}>" />
                        <input type="text" value="<{$user_info['username']}>" disabled class="layui-input layui-disabled">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户昵称</label>
                    <div class="layui-input-block">
                        <input type="text" value="<{$user_info['nickname']}>" name="nickname" placeholder="请输入昵称" required lay-verify="required" class="layui-input realName">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户角色</label>
                    <div class="layui-input-block">
                        <switch name="user_info['type']">
                            <case value="0">
                                <span  class="layui-btn layui-btn-primary" >后台超级管理员</span>
                            </case>
                            <case value="1">
                                <span  class="layui-btn layui-btn-primary" >总经办</span>
                            </case>
                            <case value="2">
                                <span  class="layui-btn layui-btn-primary" >大区经理</span>
                            </case>
                            <case value="3">
                                <span  class="layui-btn layui-btn-primary" >门市店长</span>
                            </case>
                            <case value="4">
                                <span  class="layui-btn layui-btn-primary" >门店经理</span>
                            </case>
                        </switch>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">所属上级</label>
                    <if condition="$user_info['pid'] eq 0">
                        <span  class="layui-btn layui-btn-warm" >暂未分配上级</span>
                    <else />
                        <span  class="layui-btn layui-btn-primary" ><{$parent_info}></span>
                    </if>
                </div>
                <div class="layui-form-item" pane="">
                    <label class="layui-form-label">性别</label>
                    <div class="layui-input-block userSex">
                        <input type="radio" name="sex" <if condition="$user_info['sex'] eq 1">checked='checked'</if> value="1" title="男">
                        <input type="radio" name="sex" <if condition="$user_info['sex'] eq 2">checked='checked'</if> value="2" title="女">
                        <input type="radio" name="sex" <if condition="$user_info['sex'] eq 3">checked='checked'</if> value="3" title="保密">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机号码</label>
                    <div class="layui-input-block">
                        <input type="tel" value="<{$user_info['phone']}>" name="phone" placeholder="请输入手机号码" required lay-verify="required|phone" class="layui-input userPhone">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">座右铭</label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入座右铭" name="myself" class="layui-textarea myself"><{$user_info['myself']}></textarea>
                    </div>
                </div>
            </div>
            <div class="user_right">
                <div  class="layui-form-item">
                    <input type="file" name="file" class="layui-upload-file" lay-title="掐指一算，我要换一个头像了">
                    <p>我的头像 ^_^</p>
                    <img src="<{$user_info['image']}>" class="layui-circle" id="userFace">
                    <input type="hidden" name="image" id="image" value="<{$user_info['image']}>" />
                </div>
                <div class="layui-form-item">
                    <!--<span id="login_container"></span>-->
                    <img src="<{$user_info['image']}>" />
                    <p>扫描二维码绑定用户</p>
                </div>
            </div>
            <div class="layui-form-item" style="margin-left: 5%;">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="changeUser">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
        <!--
        <script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
        <script>
            var url = "http://www.xxmall.com";
            var obj = new WxLogin({
                id: "login_container",
                appid: "wxed782be999f86e0e",
                scope: "snsapi_login",
                redirect_uri: encodeURIComponent(url),
                state: Math.ceil(Math.random()*1000),
                style: "black",
                href: ""});
        </script>
        -->
    </body>
</html>